package com.gmail.wangzdl.swing.panel;

import javax.swing.JPanel;
import javax.swing.JToolBar;
import java.awt.BorderLayout;
import javax.swing.JButton;
import javax.swing.JScrollPane;
import javax.swing.JTree;
import javax.swing.JTable;
import javax.swing.border.LineBorder;
import java.awt.Color;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.ListSelectionModel;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.JTableHeader;
import javax.swing.table.TableColumn;
import javax.swing.table.TableColumnModel;
import javax.swing.border.TitledBorder;
import javax.swing.JToggleButton;
import javax.swing.JSeparator;
import java.awt.FlowLayout;

public class BaseListPane extends JPanel {
	private JTextField textField;
	JTable table;

	/**
	 * Create the panel.
	 */
	public BaseListPane() {
		setLayout(new BorderLayout(0, 0));
		
		JPanel panel = new JPanel();
		FlowLayout flowLayout = (FlowLayout) panel.getLayout();
		flowLayout.setAlignment(FlowLayout.LEFT);
		add(panel, BorderLayout.NORTH);
		
		JToolBar toolBar = new JToolBar();
		panel.add(toolBar);
		
		JButton button = new JButton("全选");
		toolBar.add(button);
		
		JButton button_1 = new JButton("全不选");
		toolBar.add(button_1);
		
		JButton button_2 = new JButton("反选");
		toolBar.add(button_2);
		
		JSeparator separator = new JSeparator();
		toolBar.add(separator);
		
		JSeparator separator_2 = new JSeparator();
		toolBar.add(separator_2);
		
		JToolBar toolBar_1 = new JToolBar();
		toolBar.add(toolBar_1);
		
		JLabel label = new JLabel("关键字");
		toolBar_1.add(label);
		
		textField = new JTextField();
		textField.setColumns(10);
		toolBar_1.add(textField);
		
		JButton button_9 = new JButton("搜索");
		toolBar_1.add(button_9);
		
		JToolBar toolBar_2 = new JToolBar();
		panel.add(toolBar_2);
		
		JButton button_4 = new JButton("导出");
		toolBar_2.add(button_4);
		
		JButton button_5 = new JButton("打印");
		toolBar_2.add(button_5);
		
		JButton button_3 = new JButton("帮助");
		toolBar_2.add(button_3);
		
		JToolBar toolBar_3 = new JToolBar();
		panel.add(toolBar_3);
		
		JButton button_6 = new JButton("新增");
		toolBar_3.add(button_6);
		
		JButton button_7 = new JButton("修改");
		toolBar_3.add(button_7);
		
		JButton button_8 = new JButton("删除");
		toolBar_3.add(button_8);
		
		JScrollPane scrollPane = new JScrollPane();
		add(scrollPane, BorderLayout.CENTER);
		
		table = new JTable();
		scrollPane.setViewportView(table);




		

	}

}
